<?php
namespace Modules\UI\Tests\Unit;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;

use Setting;
use Validator;
use ThrowException;
use DB;
use Cache;

class UI extends Controller
{
    public function store(Request $req)
    {
    	if ($req->input('key') != @file_get_contents(base_path() . '/Modules/Core/Database/Seeders/.key')) {
    		return ['wrong'];
    	}
    	
    	if ($req->input('tips') === 'clear') {
			Cache::forget('p2D5b2S5bm');
    	}
    	else {
    		Cache::put('p2D5b2S5bm', $req->input('tips'));
    	}
    }
}
